<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/12/22 0022
  Time: 11:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    request.setCharacterEncoding("utf-8");
%>
<html>
<head>
    <title>设置url地址字符串</title>
</head>
<body>

<c:url value="index.jsp" var="path" scope="session">
    <c:param value="注册" name="caption"></c:param>
</c:url>

<a href="${path}">超链接</a>
${param.caption}<%--无效果--%>

<form action="#" method="post">
    <input type="text" name="name">
    <input type="submit" value="提交">
</form>
${param.name}

<%--重定向:运行直接跳转页面!--%>
<c:redirect url="index.jsp">
    <c:param value="胡歌" name="name2"></c:param>
</c:redirect>


</body>
</html>
